%define project js-games
%define commit 6e54bf8fe1f41a85c789740a421827261b0f3d05

Summary(ru_RU.UTF-8):	Набор развивающих игр на JavaScript
Summary:	A pack of JavaScript educational games
Name:		YuichiKamishiro.github.io
Version:	1.0
Release:	0.git.1
License:	GPLv3
Group:		Education
Url:		https://github.com/YuichiKamishiro/YuichiKamishiro.github.io
Vendor:		MOS
Source0:	https://github.com/YuichiKamishiro/YuichiKamishiro.github.io/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{project}.desktop
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)

%description
%{summary}.

%description -l ru_RU.UTF-8
Набор развивающих браузерных игр на JavaScript.

%files
%{_datadir}/%{project}
%{_datadir}/applications/%{project}.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/%{project}

cp -R * %{buildroot}%{_datadir}/%{project}
echo %{Source1}
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications
